<template>
  <div id="app">
    <el-menu class="el-menu-demo" mode="horizontal" :router="true">
      <el-menu-item index="./" target="_blank">首页</el-menu-item>
      <el-menu-item index="profile" target="_blank">个人中心</el-menu-item>
      <el-menu-item index="login" @click="quit" target="_blank">退出</el-menu-item>
    </el-menu>
    <router-view/>
  </div>
</template>
<script>
export default {
  methods: {
    quit() {
      sessionStorage.removeItem('userid');
      console.log("QUIT")
    }
  }
}
</script>
<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

nav {
  padding: 30px;
}

nav a {
  font-weight: bold;
  color: #2c3e50;
}

nav a.router-link-exact-active {
  color: #42b983;
}
</style>
